use "Table4_data.dta" 

ssc install outreg2
***************************Arellano-Bond Dynamic Panel Model****************************************
***********************Regression for Table 4***********************************
*************Continuous Impact of Farmland Conservation on Total Grassland******
******************Data from USGS************************************************


xtabond log_grass_prop log_budgetmwheat log_budgetmcotton log_budgetmcorn
outreg2 using DID2.tex,replace ctitle(Full) label keep(log_budgetmwheat log_budgetmcotton log_budgetmcorn) title("Table 2: Continuous Impact of Farmland Conservation on Total Grassland"\label{tab1})


xtabond log_grass_prop log_budgetmwheat log_budgetmcotton log_budgetmcorn if year<1950
outreg2 using DID2.tex,append ctitle($<$ 1950) label keep(log_budgetmwheat log_budgetmcotton log_budgetmcorn) title("Table 2: Continuous Impact of Farmland Conservation on Total Grassland"\label{tab1})


xtabond log_grass_prop log_budgetmwheat log_budgetmcotton log_budgetmcorn if year<1960 
outreg2 using DID2.tex,append ctitle($<$ 1960) label keep(log_budgetmwheat log_budgetmcotton log_budgetmcorn) title("Table 2: Continuous Impact of Farmland Conservation on Total Grassland"\label{tab1})


xtabond log_grass_prop log_budgetmwheat log_budgetmcotton log_budgetmcorn if year<1970 
outreg2 using DID2.tex,append ctitle($<$ 1970) label keep(log_budgetmwheat log_budgetmcotton log_budgetmcorn) title("Table 2: Continuous Impact of Farmland Conservation on Total Grassland"\label{tab1})
 

xtabond log_grass_prop log_budgetmwheat log_budgetmcotton log_budgetmcorn if year<1980 
outreg2 using DID2.tex,append ctitle($<$ 1980) label keep(log_budgetmwheat log_budgetmcotton log_budgetmcorn) title("Table 2: Continuous Impact of Farmland Conservation on Total Grassland"\label{tab1})